package com.evildog.workspace.system.application.model;

import com.evildog.workspace.dependencies.mybatis.annotation.QueryCondition;
import com.evildog.workspace.dependencies.mybatis.annotation.QueryTableLogic;
import com.evildog.workspace.dependencies.mybatis.enums.ComparisonOperatorsEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * role分页查询参数，可以使用QueryCondition.class
 * </p>
 *
 * @author evildog
 * @since 2020-07-25
 */
@Data
@Accessors(chain = true)
@ApiModel(value="Role查询参数/request body")
@QueryTableLogic
public class RolePageParam implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "角色名")
    @QueryCondition(operator = ComparisonOperatorsEnum.LIKE)
    private String name;

    @ApiModelProperty(value = "状态 0 禁用 1 正常")
    @QueryCondition
    private Integer status;


}
